/**
 * CharacteristicsEnum.java
 */
package co.edu.eam.iso.enums;

import co.edu.eam.iso.util.MessagesUtil;

/**
 * @author Giovanny Ramirez Blandon
 * @version 1.0
 */
public enum CharacteristicEnum {

	FUNCTIONALITY    (1, 1, "label.characteristic.functionality"), 
	RELIABILITY      (2, 2, "label.characteristic.reliability"), 
	USABILITY        (3, 3, "label.characteristic.usability"), 
	EFFICIENCY       (4, 4, "label.characteristic.efficiency"), 
	MAINTAINABILITY  (5, 5, "label.characteristic.maintainability"), 
	PORTABILITY      (6, 6, "label.characteristic.portability");
	
	private int id;
	private int order;
	private String keyMessage;

	private CharacteristicEnum(int id, int order, String keyMessage) {
		this.id = id;
		this.keyMessage = keyMessage;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * @return the order
	 */
	public int getOrder() {
		return order;
	}

	/**
	 * @param order the order to set
	 */
	public void setOrder(int order) {
		this.order = order;
	}

	/**
	 * @return the keyMessage
	 */
	public String getKeyMessage() {
		return keyMessage;
	}

	/**
	 * @param keyMessage the keyMessage to set
	 */
	public void setKeyMessage(String keyMessage) {
		this.keyMessage = keyMessage;
	}
	
	public String toString() {
		return MessagesUtil.getMessage(this.getKeyMessage());
	}
	
}
